projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d39613
)
peg.texi: Fix bug#76555 even a bit more
author
Yue Yi
<include_yy@qq.com>
Wed, 26 Mar 2025 02:22:08 +0000
(22:22 -0400)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Wed, 26 Mar 2025 02:22:13 +0000
(22:22 -0400)
* doc/lispref/peg.texi (Parsing Expression Grammars):
Fix other part of the grammar of `define-peg-ruleset` example.
doc/lispref/peg.texi
patch
|
blob
|
history
diff --git
a/doc/lispref/peg.texi
b/doc/lispref/peg.texi
index 193a7ca957e1a8f188dddfe6ec30128a4be11c45..d93b1f6df2996aff8a6ff3e2cdceffdd415609fb 100644
(file)
--- a/
doc/lispref/peg.texi
+++ b/
doc/lispref/peg.texi
@@
-142,8
+142,8
@@
Define @var{name} as an identifier for @var{rules}.
@group
(define-peg-ruleset number-grammar
;; `digit' here references the definition above.
- (number sign digit (* digit))
- (sign (or "+" "-" "")))
+ (number
()
sign digit (* digit))
+ (sign (
) (
or "+" "-" "")))
@end group
@end example